package indi.jp.project.core.entity;

/**
 * 基础查询类
 *
 * @author jiangping
 * @date 2022/5/7
 */
public class BaseQuery {

    public BaseQuery(int page, int pageSize) {
        this.page =  page;
        this.pageSize = pageSize;
        this.offset = (page - 1) * pageSize;
    }

    private int page;

    private int pageSize;

    private int offset;

    private String lander;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public String getLander() {
        return lander;
    }

    public void setLander(String lander) {
        this.lander = lander;
    }
}
